package com.example.backend.entitly.mysql.permission;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 部门表
 *
 * @TableName departments
 */
@TableName(value = "departments")
@Data
public class Departments implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 部门ID
     */
    @TableId(type = IdType.AUTO)
    private Integer deptId;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 父部门ID
     */
    private Integer parentId;
    /**
     * 部门负责人ID
     */
    private Integer leaderId;
    /**
     * 排序优先级
     */
    private Integer sortOrder;
    /**
     * 0-禁用 1-启用
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createdAt;
    /**
     * 更新时间
     */
    private Date updatedAt;
    /**
     * 0-正常 1-删除
     */
    private Integer deleted;
    /**
     * 删除时间
     */
    private Date deletedAt;
}